package borge.web.teamspirit.client.data;

import javax.jdo.annotations.Extension;
import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.IdentityType;
import javax.jdo.annotations.NotPersistent;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;

import borge.web.teamspirit.client.interfaces.PersistentData;

@PersistenceCapable(identityType = IdentityType.APPLICATION, detachable="true")
public class TeamSerieInfo implements PersistentData{
	
	@PrimaryKey
    @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
    @Extension(vendorName="datanucleus", key="gae.encoded-pk", value="true")
    private String iEncodedKey;
	
	@Persistent
	private String iSerieKey;
	@Persistent
	private String iAssociationName;
	@Persistent
	private String iSport;
	@Persistent
	private String iLeagueSeason;
	@Persistent
	private String iLeagueDivision;
	
	@NotPersistent
	private String iNextValue;

	public TeamSerieInfo(){
		
	}
	public TeamSerieInfo(String aSk, String aAn, String aS, String aLs, String aLd){
		iSerieKey = aSk;
		iAssociationName = aAn;
		iSport = aS;
		iLeagueSeason = aLs;
		iLeagueDivision = aLd;
		
	}
	
	public String getSerieKey(){
		return iSerieKey;
	}
	
	public String getAssociationName(){
		return iAssociationName;
	}
	
	public String getSport(){
		return iSport;
	}
	
	public String getLeagueSeason(){
		return iLeagueSeason;
	}
	
	public String getLeagueDivision(){
		return iLeagueDivision;
	}
	
	public void setNextValue(String aString){
		iNextValue = aString;
	}
	
	public String getValue(){
		return iNextValue;
	}
	
	@Override
	public String getDisplayingWidget() {
		// TODO Auto-generated method stub
		return null;
	}
	@Override
	public String getEncodedKey() {
		// TODO Auto-generated method stub
		return iEncodedKey;
	}
}
